package com.dctp.common.utils;

public class ShardUtil {
    public static final int TOTAL_SHARDS = 16;

    public static int calcShardId(long userId) {
        return (int) (userId % TOTAL_SHARDS);
    }
}
